package org.zzh.springboot.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import tk.mybatis.mapper.annotation.KeySql;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name="m_user")
public class User {
    @Id
    @KeySql(useGeneratedKeys=true)
    private Long id;
    private String name;
    private String sex;
    private Integer age;
    private String phone;
    private String address;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthday;
    private String password;
    private String email;
}
